{{#with borrow}}
<div class="hide aaa">
	<span id="aprVal">{{apr}}</span> <!--年化利率-->
	<span id="limitVal" >{{timeLimit}}</span>
	<span id="moneyVal" >{{account}}</span>
	<span id="styleVal" >{{style}}</span>
	<span id="isDayVal" >{{borrowTimeType}}</span>
	<span id="upMoneyVal" >0</span>
	<span id="lowestAccount">{{lowestAccount}}</span>
	<span id="mostAccount">{{mostAccount}}</span>
	<span id="accountWait">{{../accountWait}}</span>
	<span id="category">{{category}}</span>
	<span id="bioName">{{name}}</span>
</div>
{{/with}}
<!-- 左侧 -->
<div class="investbg">
<div class="invest-main-left width820 minheight420  bg-white">
<!-- 标信息 -->
    <div class="bid_info">
        {{#each borrowUploads}}
        {{#equal type 6}}
            {{#compare picPath '===' ''}}
            <!--<img src="/themes/theme_default/images/wytz_face.png" class="face ml10 mr20 mb20">-->
            {{else}}
            <!--<img src="{{../../../url}}{{picPath}}" class="face ml10  mr20 mb20"/>-->
            {{/compare}}
        {{/equal}}
        {{/each}}
        {{#with borrow}}
        <dl class="clearfix float_left">
            <dt class="c315A8B" style="font-size:18px;line-height:65px!important;color:#000000;height:65px;">{{name}}
            {{#inequality category 2}}
            <ul class="mybenefit">
	            <!--{{#equal type 112}}<li class="benefit-no">首投返利</li>{{/equal}}-->
	            {{#inequality recommend true}}
		            {{#inequality type 117}}<li class="benefit-have">投资红包</li>{{/inequality}}
		            {{#equal type 112}}<li class="benefit-no">送加息券</li>{{/equal}}
	            {{/inequality}}
            </ul>
            {{/inequality}}
            </dt>
                <dd class="bid_intro">
                 <div class="second"><span>预期年化</span><b class="c315A8B f24 invest-main-intr">{{apr}}<em>%</em></b></div>
                   <div class="last invest-main-time"><span>项目时间</span>{{borrowLimitTime borrowTimeType timeLimit}}</div>
                <div class="first"><span>项目金额</span><b class="c315A8B f24">{{moneyFormat account}}<span class="invest-detail-money">元</span></b></div>
               
             
                <div class="investSchedule"><span>{{scales}}%</span><input type="text" class="knob" value="{{scales}}" /></div>
            </dd>
        </dl>
        <ul class="bid_intro_detail">
            <li>项目编号：　<span>{{bidNo}}&nbsp;&nbsp;&nbsp;
                {{#showCountDown putStartTime ../serverNowTime}}
                    <!-- 未开标 -->
                {{else}}
                    <!--{{{protocolPreview status}}}-->
                    <input type="hidden" id="bid_id" value="{{id}}" /><!-- 协议ID -->
                {{/showCountDown}}</span></li>
            <li>最高投标：　<span>{{bidMostLimit mostAccount account}}元</span></li>
            <li>最低投标：　<span>{{bidLimit lowestAccount}}元</span></li>
            <li>还款方式：　<span>{{transFormatStyle style}}</span></li>
            <li>发布时间：　<span>{{fixedTimeTranformation fixedTime startTime}}</span></li>
           <!-- <li>投资奖励　<span>{{#equal partAccount 0}}无{{else}}{{partAccount}}%{{/equal}}</span></li>-->
          
          
        </ul>
        {{/with}}
    </div><!-- 标信息 -->
</div>
<div class="invest-main-right width355 minheight420 bg-white">
	<div class="invest-right-top clearfix">
       
        {{#equal borrow.status 59}}
            {{#equal ../borrow/category 2}}
            <div class="amount-form-box borrow_user_tip pt30 pl30 pr30" style="text-align: center">
                <img src="/themes/theme_default/images/tybyqg.jpg" alt=""/>
            </div>
            {{else}}
            <div class="amount-form-box borrow_user_tip pt30 pl30 pr30">
                <dl><dt><i class="iconfontol">&#xe60f;</i>已抢光！</dt></dl>              
            </div>
            {{/equal}}
            
            <input type="hidden" id="bid_id" value="{{../borrow/id}}" />
        {{/equal}}
        {{#equal borrow.status 0}}
            <div class="amount-form-box borrow_user_tip pt30 pl30 pr30">
                <dl><dt><i class="iconfontol">&#xe60f;</i>对不起！</dt><dd>等待管理员初审，不能进行投资。</dd></dl>
            </div>
            <input type="hidden" id="bid_id" value="{{../borrow/id}}" />
        {{/equal}}

        {{#isNotCanInvestmentStatus borrow.status}} {{! 无法投资状态 }}
        {{#with borrow}}
        <div class="amount-form-box borrow_full pt25 pl30 pr30">
            <p>投资笔数：<em>{{../data.page.total}}笔</em></p>
            <p>当前状态：<em>{{logBorrowStatusFun status scales type flow}}</em></p>
            <p>欢迎进入<a href="/invest/index.html">投资列表</a>，投资其他借款。</p>
        </div>
        {{/with}}
        {{/isNotCanInvestmentStatus}}

        {{#inequality borrow.status 59}} {{!S 判断是否已被撤回 status=59 后台撤回}}
        {{#inequality borrow.status 0}}  {{!S 判断是否为预览页面 status=0}}
        {{#equal borrow.status 1}} {{!S 初审通过的标 status=1}}
        {{#if borrowPreview}}
            {{#equal userType 2}}
                <div class="amount-form-box borrow_user_tip pt10 pl30 pr30">
                    <dl><dt><i class="iconfontol">&#xe60f;</i>对不起！</dt><dd>借款人，不能进行投资。</dd></dl>
                    <a class="login_account" href="/member/main.html">进入账户中心</a>
                </div>
                <input type="hidden" id="bid_id" value="{{../borrow/id}}"/>
            {{/equal}}

            {{#inequality userType 2}}{{!S 判断用户类型是否为非借款用户}}
                {{#equal borrow/scales 100}} {{! S已满标}}
                    {{#with borrow}}
                    <div class="amount-form-box borrow_full pt20 pl30">
                        <p>投资笔数<em class="colee5545">{{../data.page.total}}</em><font>笔</font></p>
                        <p>当前状态<em>{{logBorrowStatusFun status scales type flow}}</em></p>
                        <p class="disabled_btn">已抢光</p>
                        <p class="mt10 mr30 textcenter">欢迎进入<a href="/invest/index.html">投资列表</a>，投资其他借款。</p>
                    </div>
                    {{/with}}
                    <input type="hidden" id="bid_id" value="{{../borrow/id}}" />
                {{/equal}} {{! E已满标}}

                {{#inequality borrow/scales 100}} {{!S 未满标}}
                    <div class="amount-form-box pl30 pr20 float_right pt10">
                        <input type="hidden" id="redPackageRate" value="0">  <!-- 红包可使用占比投资金额最大比例 -->
                        <!-- S 体验券 -->
                        <input type="hidden" id="experienceMoney" value="0" >
                        <input type="hidden" id="experienceMoneyIdArry" value="" >
                        <input type="hidden" id="canUseExperienceMoney" value="" >
                        <!-- E 体验券隐藏域 -->

                        <!-- S 加息券隐藏域 -->
                        <input type="hidden" id="canUseCouponMoney" value="" >
                        <input type="hidden" name="myRIRCouponId" class="myRIRCouponId" value="" >
                        <!-- E 加息券隐藏域 -->

                        {{!-- S 新标预告--}}
                        {{#showCountDown borrow.putStartTime serverNowTime}}
                        <div class="invest-btns">
                            <div class="invest-showCountDown">
                                  <label>离开标仅剩</label>
                                  <p><span id="showCountDownTime">{{{showCountDownTimeFun borrow.putStartTime serverNowTime}}}</span></p>
                            </div>
                        </div>
                        <div class="form-group">
                            <em class="iconfont">&#xe63b;</em><input type="text" placeholder="投标金额" autocomplete="off" maxlength="7" readonly />
                        </div>
                        <div class="form-group">
                            <em class="iconfont">&#xe617;</em>
                            <input type="password" class="payPwdText" size="11" placeholder="" autocomplete="off"/>
                            <input type="password" class="payPwd" placeholder="交易密码" autocomplete="off" style="display:none;"/>
                        </div>
                        <div class="form-action"><p class="doNotInvest">立即投资</p></div>
                        {{else}}
                            {{!-- S 通过canTender判断用户是否可投当前标--}}
                            {{#if isLogin}}
                            {{#if canTender}}
                                {{#with account}}
                                <p class="amount-money">可用余额：<i class="pageUseMoney">{{moneyFormat useMoney}} 元</i></p>
                                <p class="amount-money">可投金额：<i class="pageInvestMoney">{{moneyFormat ../../accountWait}} 元</i></p>
                                {{#equal ../borrow.type 117}}<p class="amount-money">投资单金：<i class="pageInvestMoney">{{moneyFormat ../../borrow.lowestAccount}} 元</i></p>{{/equal}}
                                <form action="/invest/tender.html" name="form1" id="invest_detail_form1" method="post" class="amount-form clearfix" onkeydown="if(event.keyCode==13) return false; " autocomplete="off">

                                    <div class="form-group {{#equal ../../borrow.category 2}}hide{{/equal}}">

                                        <input type="hidden" id="rateInterestId" name="rateInterestId" value="" />
                                        <em class="iconfont">&#xe63b;</em>
                                        <input type="text" id="money"  name="money" size="11" onKeyUp="replaceAndSetPos(this,/[^0-9]/g,'')" placeholder="投标金额" autocomplete="off" maxlength="7" />
                                        <i>元</i>
                                        <div class="form_group_tip form_mony_tip hide">
                                            <b class="iconfont">&#xe60f;</b>请输入投标金额进行投标
                                        </div>
                                    </div>

                                    {{#inequality ../borrow.type 101}}{{!-- 非秒标 --}}
                                  
                                   <!--使用红包和加息券新样式-->
                                    {{#inequality ../../borrow.category 2}}
                                    <div class="redAndCoupon"  style="{{#equal ../../../borrow.type 117}}display:none;{{/equal}} {{#equal ../../../borrow.recommend true}}display:none;{{/equal}}">
	                                    <div class="form-red">
	                                    <a href="javascript:;" class="choiceRedPacket" title="我的红包">使用红包</a>
	                                    </div>
	                                    {{#inequality ../../../borrow.timeLimit 1}}
		                                    <div class="form-coupon">
		                                    <a href="javascript:;" class="choiceCoupon" title="使用加息券" >使用加息券</a>
		                                    </div>
		                                    {{else}}
		                                    {{#inequality ../../../../borrow.borrowTimeType 0}}
		                                    <div class="form-coupon">
		                                    <a href="javascript:;" class="choiceCoupon" title="使用加息券" >使用加息券</a>
		                                    </div>
		                                    {{/inequality}}
	                                    {{/inequality}}
                                     </div>
                                     
                                     {{else}}
                                     	<div class="form-experience"><a href="javascript:;" class="choiceExperience" title="使用体验券">使用体验券&nbsp;&gt;&gt;</a></div>
                                     {{/inequality}}
                                     
                                     {{/inequality}}
                                    {{#equal ../borrow.type 101}}
                                        <div class="form-finalActualPayment" style="display:none;"><a href="javascript:;" class="finalActualPayment" title="实际支付"></a><a href="javascript:;" class="finalInvestMoney" title="实际投资"></a></div>
                                    {{/equal}}

                                    {{!S 是否开启定向密码}}
                                    {{#if ../isDirectional}}
                                    <div class="form-group">
                                        <em class="iconfont">&#xe617;</em>
                                        <input type="password" class="isDirectionalText"  size="11"  placeholder="定向密码" autocomplete="off"/>
                                        <input type="password" class="isDirectional"  name="pwd" size="11" placeholder="定向密码" autocomplete="off" style="display:none;"/>
                                        <div class="form_group_tip form_directional_tip hide"></div>
                                    </div>
                                    {{/if}}
                                    {{!E 是否开启定向密码}}
                                    {{!S 交易密码相关}}
                                        {{#equal ../../payPwd false}}
                                            <div class="form-group" style="position:relative">
                                                <em class="iconfont">&#xe617;</em>
                                                <input type="password" class="payPwdText" placeholder="交易密码" size="11" autocomplete="off"  />
                                                <input type="password" class="payPwd"  name="payPwd" size="11" placeholder="" autocomplete="off"  style="display:none;"/>
                                                <div class="form_group_tip form_trade_tip hide"></div>
                                               
                                            </div>
                                            {{#equal ../../borrow.type 103}}
                                            <div class="form-group rewardModeCls" style="height:20px; display:none;">
                                            	<label>奖励：</label>
                                            	<input type="radio" name="rewardMode" value="back_now" class="ml20" id="rewardMode_back_now" checked="checked"><label for="rewardMode_back_now">返现</label>
                                            	<input type="radio" name="rewardMode" value="redeem_code" class="ml40" id="rewardMode_redeem_code"><label for="rewardMode_redeem_code">爱奇艺会员</label>
                                            </div>
                                            {{/equal}}
                                            <!--预期收益和实际支付新样式-->
                                             
                                            <div class="form-finalActualPayment  pt10">
                                            <a href="javascript:;" class="finalInvestIncome" title="预期收益"></a>
                                            <a href="javascript:;" class="finalActualPayment" title="实际支付"></a>
                                            <a href="javascript:;" class="finalInvestMoney" title="实际投资" style="display:none;"></a>
                                            </div>
                               
                                            <div class="form-action">
                                                <input type="button" value="立即投资" class="orange-btn sub-invest-btn" id="immediateInvestment">
                                                 <a href="/member/security/setting.html?m=resetPayPwd" class="forgetPassword">忘记交易密码？</a>
                                            </div>
                                        {{else}}
                                            <div class="qd-clear"></div>
                                            <div class="form-group clearboth">交易密码：<a href="/member/security/setting.html" style="color:#c83e41">请设置交易密码</a></div>
                                            <div class="form-action">
                                                <a class="gray_btn">立即投资</a>
                                            </div>
                                        {{/equal}}
                                    {{!E 交易密码相关}}
                                    <div class="form-action">
                                        <input type="hidden" id="bid_id" name="id" value="{{../borrow/id}}"/>
                                        <input type="hidden" name="tenderToken" value="{{../tenderToken}}">
                                    </div>
                                    {{!S红包dom结构}}
                                    <div  id="choiceRedPacket" class="hide choiceRedPacketBox">
                                        <!--<label class="checkAllRedPacket" for="checkAllRedPacket"><input type="checkbox" id="checkAllRedPacket"/>全选</label>-->
                                        <div class="redPacketTips hide"></div>
                                        <ul id="redPacketList" class="clearfix"></ul>
                                        <p class="redPackerShowTxt">选中红包总额：<span class="choiceRedPacketMoney">0</span>元&nbsp;&nbsp;&nbsp;&nbsp;实际支付金额：<span class="investMoney">0</span>元</p>
                                        <div class="formula">投资可使用红包额度=投资金额*<span class="redPackageRate"></span>%</div>
                                        <div class="redPacketConfirm"><a href="javascript:;" id="redPacketConfirm" class="green-btn">确定</a></div>
                                        <input type="hidden" id="redMoneyIdArry" name="redEnvelopeStr" value="" >
                                    </div>
                                  {{!E红包dom结构}}
                                  {{!S体验券dom结构}}
                                    <div id="choiceExperience" class="hide choiceExperienceBox">
                                       <!-- <label class="checkAllExperience" for="checkAllExperience"><input type="checkbox" id="checkAllExperience"/>全选</label>-->
                                        <div class="experienceTips hide"></div>
                                        <ul id="experienceList" class="clearfix"></ul>
                                        <p class="redPackerShowTxt">选中体验券总额：<span class="choiceExperienceMoney">0</span>元</p>
                                        <div class="formula experienceFormula"></div>
                                        <div class="experienceConfirm"><a href="javascript:;" id="experienceConfirm" class="green-btn">确定</a></div>
                                    </div>
                                  {{!E体验券dom结构}}
                                  <input type="hidden" name="uuid" id="uuid" value="{{../borrow/uuid}}"/>
                                </form>

                               {{/with}}
                            {{else}}
                               <p class="noInvest"></p>
                            {{/if}}
                            {{else}}
                            <!--<p class="amount-money textcenter" style="width:310px;">可投金额：<i class="pageInvestMoney" style="float:none;">{{moneyFormat ../../accountWait}} 元</i></p>-->
                            <a href="/user/login.html" class="invest_must_login" style="width:310px;display:none;">投资请先登录</a>
                            <div class="bid_info_signIn">你还未登录</div>
                            <a class="bid_info_signIn_btn" id="" href="/user/login.html">立即登录</a>
                            <div class="bid_info_signIn_a">没有帐号？<a href="/user/register.html" >立即注册</a></div>
                            {{/if}}
                        {{/showCountDown}}
                        {{!-- E 新标预告--}}
                    </div>
                {{/inequality}}{{!E 判断是否满标}}
            {{/inequality}}{{!E 判断用户类型是否为非借款用户}}
        {{else}}
        <div class="amount-form-box borrow_user_tip pt10 pl30 pr30">
            <dl><dt>对不起！</dt><dd>此页面为预览页面，不能进行投资。</dd></dl>
        </div>
        <input type="hidden" id="bid_id" value="{{../borrow/id}}" />
        {{/if}} {{! E前台投标}}
        {{/equal}}  {{! E初审通过的标}}
        {{/inequality}}{{!E 判断是否为预览页面 status=0}}
        {{/inequality}}{{!E 判断是否已被撤回 status=59 后台撤回}}
    </div>
</div>
<div class="qd-clear"></div>
</div>
<div class="invest-main-left invest-main-down width1200 " style="margin-top:-5px;">
    
    <!-- 标详情 -->
    <div class="mb20 bdr1-e6e6e6 bg-white">
        <!-- 标详情菜单 -->
        <div class="detail-menus clearfix">
            <div class="detail_menus_center">
                  {{#if userBaseInfo}}<a href="javascript:void(0)" class="a1">借款方详情</a>{{/if}}
                  <a href="javascript:void(0)" class="a2">项目简介</a>
                  {{#inequality borrow.category 2}}<a href="javascript:void(0)" class="a7">风控信息</a>{{/inequality}}
                  <a href="javascript:void(0)" class="a5">投资记录</a>
                  <p id="invest_btn" class="js_hide" href="javascript:;">立即投资</p>
            </div>
        </div><!-- 标详情菜单 -->
        <!-- 各类详情信息 -->
        <div class="invest_detail_content">
            {{#with userBaseInfo}}
            <!-- 借款用户基本信息 -->
            <div class="borrower-info mb30">
                <h3 class="invest-detail-h3"><div>借款方详情</div></h3>
                <h4>借款人信息</h4>
                <ul class="clearfix">
                    <li><label>用户名：</label>{{../borrow/userName}}</li>
                    <li><label>婚姻状况：</label>{{transMaritalStatus maritalStatus}}</li>
                    <li><label>收入范围：</label>{{transMonthIncomeRange monthIncomeRange}}</li>
                    <li><label>年　龄：</label>{{transBirthday birthday}}</li>
                    <li><label>户籍城市：</label>{{province}} {{city}}</li>
                    <li><label>车　　产：</label>{{transValue carStatus}}</li>
                    <li><label>学　历：</label>{{transEducation education}}</li>
                    <li><label>工作时间：</label>{{transWorkExperience workExperience}}</li>
                    <li><label>房　　产：</label>{{transValue houseStatus}}</li>
                </ul>
                {{#with ../certificationApply}}
                <h4 class="mt10">资料审核状态</h4>
                <table>
                    <tr>
                      <th>审核项目</th>
                      <th>状态</th>
                      <th>通过时间</th>
                    </tr>
                    {{#each ../../certificationApply}}
                    <tr>
                        <td>{{typeName}}</td>
                        <td><img src="/themes/theme_default/media/bg/ok.png" alt=""></td>
                        <td>{{timeMonthFormat addTime}}</td>
                    </tr>
                    {{/each}}
                </table>
                {{/with}}
            </div><!-- 借款用户基本信息 -->
            {{/with}}
            {{#with borrow}}
            <!-- 借款描述 -->
            <div class="borrow-desc mb30">
                <h1 class="qd_new_51"><em></em>项目简介</h1>                
                {{#inequality category 2}}
                <div class="pl30 pb30 pr30"><p style="text-indent:2em">{{borrowDetailContent content}}</p></div>
                {{else}}
                	<div class="use_detail">
                    1、本项目需要完成实名认证；<br>
                    2、体验金所得收益是由“酒掌柜”平台自有资金设立的专门用于提供给平台用户进行平台项目投资体验的基金；<br>
                    3、体验金只能投资体验项目使用，不可提现；<br>
                    4、客户使用体验金投资项目到期后，所得的收益归客户所有，体验金由平台收回；<br>
                    5、完成体验3天后收益自动到账户，可用户投资使用和提现；<br>
                    6、酒掌柜有权取消恶意刷单用户所获得的收益。<br>
                    	本活动最终解释权归属酒掌柜所有！

                	</div>
                {{/inequality}}
            </div><!-- 借款描述 -->
            <div class="qd-clear"></div>
            {{/with}}
            <!-- 借款资料 -->
            
            {{#inequality borrow.category 2}}
            <div class="borrow-detail mb30">
                <h1 class="qd_new_51"><em></em>风控信息</h1>  
                <!--<h3 class="invest-detail-h3"><div>借款资料</div></h3>-->
                <div class="tab-content">
                    <div class="album">
                        <ul class="img-box bdr1-e6e6e6">
                        {{#each borrowUploads}}
                        {{#equal type 4}}<li><a href="{{../../url}}{{picPath}}" class="fancybox" rel="gallery"><img src="{{../../url}}{{picPath}}" alt="资料"></a></li>{{/equal}}
                        {{/each}}
                        </ul>
                        <a href="javascript:void(0)" class="prev"></a>
                        <a href="javascript:void(0)" class="next"></a>
                        <ul class="hd">
                        {{#each borrowUploads}}
                        {{#equal type 4}}<li></li>{{/equal}}
                        {{/each}}
                        </ul>
                    </div>
                </div>
            </div><!-- 借款资料 -->
			{{/inequality}}
            <!-- 投资记录 -->
            <div class="invest-record mb30">
                <h1 class="qd_new_51"><em></em>投资记录</h1>  
                {{#inequality borrow.category 2}}
                {{#equal borrow.type 112}}
                {{#inequality borrow.recommend true}}
                <ul class="invest-d-award">
                	{{#isNotBlank firstTenderCashBackRate}}<li>
                		<h2>抢占先机</h2>
                		<span class="invest-da-phone">{{firstTender.mobile}}</span>
                		<span class="invest-da-money">奖励：{{moneyAward firstTender.money firstTenderCashBackRate}}元</span>
                	</li>{{/isNotBlank}}
                	{{#isNotBlank mostTenderCashBackRate}}<li>
                		<h2>脱颖而出</h2>
                		<span class="invest-da-phone">{{mostTender.mobile}}</span>
                		<span class="invest-da-money">奖励：{{moneyAward mostTender.money mostTenderCashBackRate}}元</span>
                	</li>{{/isNotBlank}}
                	{{#isNotBlank lastTenderCashBackRate}}<li>
                		<h2>完美收官</h2>
                		<span class="invest-da-phone">{{lastTender.mobile}}</span>
                		<span class="invest-da-money">奖励：{{moneyAward lastTender.money lastTenderCashBackRate}}元</span>
                	</li>{{/isNotBlank}}
                </ul>
                {{/inequality}}
                {{/equal}}
                {{/inequality}}
                <table id="invest-txjl-tbl">
                    <tr>
                        <th width="80px">序号</th><th width="140px">投资人</th><th>投资金额</th><th>投资时间</th><th>投资方式</th><th>状态</th>
                    </tr>
                    {{#if data.list}}
                    {{#each data.list}}
                    <tr>
                    <td>{{addOne @index}}</td>
                    <td>{{mobilePhone}}</td>
                    <td>￥{{account}}</td>
                    <td>{{transFormatDate addTime}}</td>
                    <td>{{transFormatTenderType tenderType}}</td>
                    <td><i class="icon success"></i></td>
                    </tr>
                {{/each}}
                {{else}}
                    <tr><td colspan="6">暂无投资记录</td></tr>
                {{/if}}
                </table>
                <div id="kkpager" class="ml20 mr20"></div>
            </div><!-- 投资记录 -->
        </div><!-- 各类详情信息 -->
    </div><!-- 标详情 -->
</div><!-- 左侧 -->


